package com.alibaba.nacos.common.notify;

import com.alibaba.nacos.common.notify.listener.Subscriber;

public interface EventPublisher
        extends Cloneable {
    void init(Class<? extends Event> type,
              int bufferSize);

    boolean publish(Event event);

    void addSubscriber(Subscriber subscriber);
}
